
<h1><%= _('Choose language') %></h1>
	<p style="text-align: left;"><%= _('This language will be used for the MBDS website only.') %> </p>
	
		<% form_for :user, current_user , :url => {:controller => "users", :action => "change_language"}, :html => { :name => 'language_form' } do |f| %> 
			<ul>
			<% LANGUAGES.each do |lan|%>
			 <li><a href="#" value="<%=lan["locale"]%>" onclick="jQuery('#user_preferred_language').val('<%=lan["locale"]%>'); language_form.submit(); return false;"> <%= lan["name"] %> </a></li>
			<%end%>
			<%= f. hidden_field(:preferred_language)%>
			
			</ul>
		<% end %>

		<hr class="dashed" />
		<%= link_to image_tag("b_cancel.gif"), {}, :onclick =>"closeLangPopup(); return false", :style =>"float:right; margin-right:20px;" %>
